const router = require('koa-router')()
const Mock = require('mockjs')
const { list } = Mock.mock({
  "list|5": [{
    "title": "@ctitle(2)",
    "count|1-9999": 1,
    "children|5-10": [{
      "title": "@ctitle"
    }]
  }]
})

router.get('/list', ctx => {
  ctx.body = {
    code: 200,
    data: list
  }
})


module.exports = router
